onUserVariablesUpdate()
Availability:
SmartFoxServer Lite / Basic / Pro
Usage:
smartFox.onUserVariablesUpdate(userObj <propList>, changedVars <propList>)
Description:
The event is fired when a user in the current room updates its variables.
Parameters:
| userObj | the propertylist of the user who updated the variables | |
| changedVars | A propertylist with the names of the changed variables as keys |
Returns:
nothing
Example:
on onUserVariablesUpdate me, userObj
-- We assume each user has a px and py variable for moving an avatar icon around.
variable = userObj.variables
px = variables["px"]
py = variables["py"]
put("User: " & userObj.name & " is now located at " & px & ", " & py)
end
See also: